//
//  AboutUsVC.swift
//  ShareUmbrella
//
//  Created by keng fu on 2017/8/22.
//  Copyright © 2017年 尧尚信息科技. All rights reserved.
//

import UIKit
import YSKit

class AboutUsVC: YSBaseViewController {
    
    let imgLogo = UIImageView()
    let lblTitle = UILabel()
    let lblCopyRight1 = UILabel()
    let lblCopyRight2 = UILabel()
    
    override func setup() {
        super.setup()
        
        
    }
    /*
     *
     * 界面布局初始化
     */
    override func buildUI() {
        super.buildUI()
        self.title = I18n("setting.aboutus.title")
        
        imgLogo.ys.customize { (view) in
            self.view.addSubview(view)
            view.image = UIImage(named: "logo-1")
            view.snp.makeConstraints({ (make) in
                make.centerX.equalTo(self.view.snp.centerX)
                make.top.equalTo(self.view.snp.top).offset(80)
            })
        }
        
        lblTitle.ys.customize { (view) in
            self.view.addSubview(view)
            view.text = "U4YOU V1.0"
            view.textColor = .gray
            view.font = UIFont.systemFont(ofSize: 20)
            view.snp.makeConstraints({ (make) in
                make.centerX.equalTo(self.view.snp.centerX)
                make.top.equalTo(imgLogo.snp.bottom).offset(20)
            })
        }
        
        lblCopyRight1.ys.customize { (view) in
            self.view.addSubview(view)
            view.text = "xx公司 版权所有"
            view.textColor = .lightGray
            view.font = UIFont.systemFont(ofSize: 13)
            view.snp.makeConstraints({ (make) in
                make.centerX.equalTo(self.view.snp.centerX)
                make.bottom.equalTo(self.view.snp.bottom).offset(-40)
            })
        }
        
        lblCopyRight2.ys.customize { (view) in
            self.view.addSubview(view)
            view.text = "CopyRight 2001-2017 xx公司 All Right Reserved"
            view.textColor = .lightGray
            view.font = UIFont.systemFont(ofSize: 13)
            view.adjustsFontSizeToFitWidth = true
            view.textAlignment = .center
            view.snp.makeConstraints({ (make) in
                make.centerX.equalTo(self.view.snp.centerX)
                make.top.equalTo(lblCopyRight1.snp.bottom).offset(10)
                make.leading.equalTo(self.view.snp.leading).offset(10)
                make.trailing.equalTo(self.view.snp.trailing).offset(-10)
            })
        }
        

    }
    
    //
    override func buildRx() {
        super.buildRx()
    }
}
